package decorator;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/7 14:10
 * @Description: 红色形状修饰类，继承图形修饰抽象类
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape){
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        //super.draw();
        setRedBorder();
    }

    private void setRedBorder(){
        System.out.println("Border Color: Red...");
    }
}
